#include <iostream>
#include "memory_pool.h"
using namespace std;
extern int small_count;
int main()
{
    memory_pool pool;
    pool.init();
    for(int i=0;i<10;++i){
        pool.alloc_mem(16);
    }
    cout<<"申请了有："<<small_count<<endl;
    for(int i=0;i<10;++i){
        pool.alloc_mem(3*4096);
    }
    pool.reset_pool();
    cout<<"----------------------------------------------------------"<<endl;
    for(int i=0;i<10;++i){
        pool.alloc_mem(16);
    }
    cout<<"申请了有："<<small_count<<endl;
    for(int i=0;i<10;++i){
        pool.alloc_mem(3*4096);
    }
    return 0;
}